﻿<%@ Page Language="C#" MasterPageFile="~/Shared/FormPage.Master" AutoEventWireup="true" CodeBehind="Notice_Edit.aspx.cs" Inherits="Runda.CMS.Portal.Workspace.Notice_Edit" StylesheetTheme="GlobleTheme" validateRequest="false" %>

<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content runat="server" ContentPlaceHolderID="head" ID="myHeader">
    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script language="javascript" src="../Content/Detail.js"></script>

    <script type="text/javascript" src="../Content/DateTime/date.js"></script>

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script type="text/javascript" src="../Content/DateTime/time.js"></script>

    <script language="javascript" src="../Content/util.js"></script>

    <script src="../Content/global.js" type="text/javascript"></script>

    <script src="../Content/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../Content/jquery.numeral.js" type="text/javascript"></script>    
<script type="text/javascript">

    $(function() {
        $('#<%=txtDeptName.ClientID %>').attr('readonly', 'readonly');
        $('#<%=txtDeptID.ClientID %>').attr('readonly', 'readonly');
    })
    
    
    function SelectDept() {
        radopen('SelectDeptMultiple.aspx', 'winSelectDept');
        return false;
    }

    
    function OnSelectDeptCallback(radWindow) {
        if (radWindow != undefined) {
            if (radWindow.Argument != '' && radWindow.Argument != null) {
                if (radWindow.Argument[0] != undefined) {
                    document.getElementById('<%=txtDeptID.ClientID %>').value = radWindow.Argument[0];
                    document.getElementById('<%=txtDeptName.ClientID %>').value = radWindow.Argument[1];

                }
            }
        }
    }
</script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="cphFormArea" ID="Content1">
<rad:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>  
        <rad:RadWindow ID="winSelectDept" runat="server" Title="选择部门" Height="500px" Width="600px" ReloadOnShow="true" Modal="true" OnClientClose="OnSelectDeptCallback"/> 
   </Windows>
</rad:RadWindowManager>
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td width="9">
                    <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif">
                </td>
                <td class="icMenu" nowrap>
                    <asp:LinkButton ID="lnkbtnSave" runat="server" OnClientClick=""  OnClick="lnkbtnSave_Click" ><span class="menu" title="保存"><img class="mnuBtn" src="../Content/Menu/Save_16_blue.gif"><span class="mnuBtn">保存</span></span></asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnSaveAndClose" runat="server" OnClientClick=""  OnClick="lnkbtnSaveAndClose_Click"
                       ><span class="menu" title="保存&amp;关闭" onclick="window.execScript(this.action);"><img class="mnuBtn" src="../Content/Menu/SaveClose_16_blue.gif"><span class="mnuBtn">保存&amp;关闭</span></span></asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnSaveAndNew" runat="server" OnClientClick=""  OnClick="lnkbtnSaveAndNew_Click"
                     ><span class="menu" title="保存&amp;新增"><img class="mnuBtn" src="../Content/Menu/SaveNew_16_blue.gif"><span class="mnuBtn">保存&amp;新增</span></span></asp:LinkButton>
                    <img src="../Content/Menu/separator.gif">
                    <span class="menu" title="关闭" onclick="window.opener.document.getElementById('ctl00_cphBody_btnRefersh').click();window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
    <div id="areaForm" class="area">
        <table cellspacing="0" cellpadding="0" width="100%" height="100%">
            <tbody>               
                <tr>
                    <td valign="top">
                        <div style="display: inline" id="appForm_tab0" class="tab">
                            <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3"
                                width="100%">
                                <colgroup>
                                    <col width="60">
                                    <col>
                                    <tbody>
                                        <tr>
                                            <td class="req">
                                                接收时间
                                            </td>
                                            <td>
                                                <asp:TextBox ID="NoticeTime" runat="server" CssClass="input"></asp:TextBox>
                                                <asp:Label ID="NoticeID" runat="server" Visible="false"></asp:Label>
                                            </td>
                                            <td style="padding-left: 4px;">
                                                <img title="选择日期" class="dtm" style="cursor: hand;" src="/Images/btn_off_cal.gif"
                                                    complete="complete" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="req">
                                                部门</td>
                                            <td>
                                                <asp:TextBox ID="txtDeptName" runat="server" CssClass="input"></asp:TextBox><asp:HiddenField
                                                    ID="txtDeptID" runat="server" />
                                            </td>
                                            <td style="padding-left: 4px;">
                                                <img alt=""  onclick="SelectDept();" src="../Images/btn_off_lookup.gif" style="cursor:hand" /></td>
                                        </tr>
                                        <tr>
                                            <td style="vertical-align: top">
                                                内容
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtNoticeContent" runat="server" TextMode ="MultiLine" Height="300px"  ></asp:TextBox>
                                                 
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </div>
                    </td>
                </tr>              
            </tbody>
        </table>      
    </div>
    <asp:TextBox runat="server" ID="hiddenContent" style="display:none"></asp:TextBox>
</asp:Content>
